﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chart1.aspx.cs" Inherits="public_chart1" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    x:<asp:DropDownList ID="xcolumn" runat="server">
    </asp:DropDownList>
    y:<asp:ListBox ID="ycolumn" runat="server" SelectionMode="Multiple"></asp:ListBox>
    图表类型：<asp:DropDownList ID="charttype" runat="server">
    <asp:ListItem Value="1">柱状图</asp:ListItem>
    <asp:ListItem Value="2">折线图</asp:ListItem>
    <asp:ListItem Value="3">饼状图</asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="Button1" runat="server" Text="确定" onclick="Button1_Click" />
    <div>
        <asp:Chart ID="Chart1" runat="server">
<%--            <Series>
                <asp:Series Name="Series1">
                </asp:Series>
            </Series>--%>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    </div>
    </form>
</body>
</html>
